package cn.service.app_version;

import cn.mapper.app_version.App_versionMapper;
import cn.pojo.App_version;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional(rollbackFor = Throwable.class)
@Service("app_versionService")
public class App_versionServiceImpl implements App_versionService{

    @Resource
    private App_versionMapper app_versionMapper;

    @Override
    public List<App_version> getApp_versionById(Integer appId) {
        return app_versionMapper.getApp_versionById(appId);
    }

    @Override
    public int add(App_version app_version) {
        return app_versionMapper.add(app_version);
    }

    @Override
    public int update(App_version app_version) {
        return app_versionMapper.update(app_version);
    }
}
